package com.health.dao;

import com.github.pagehelper.Page;
import com.healthcommon.pojo.Member;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MemberDao {

    public List<Member> findAll();

    public Page<Member> selectByCondition(String queryString);

    public void add(Member member);

    public void deleteById(Integer id);

    public Member findById(Integer id);

    public Member findByTelephone(String telephone);

    public void edit(Member member);

    Integer findMemberCountBeforeDate(String m);

    //今日新增会员数
    public Integer findMemberCountByDate(String date);

    //本周新增会员数
    public Integer findMemberCountAfterDate(String date);

    //总会员数
    public Integer findMemberTotalCount();

}
